

// Keypad.java
// Represents the keypad of the ATM
import java.util.Scanner; // program uses Scanner to obtain user input

public class Keypad
{
   private Scanner input; // reads data from the command line
                         
   // no-argument constructor initializes the Scanner
   public Keypad()
   {
      input = new Scanner( System.in );    
   } // end no-argument Keypad constructor

   // return an integer value entered by user 
   public int getInput()
   {
      return input.nextInt(); // we assume that user enters an integer  
   } // end method getInput
   
   //return a long value entered by user
   public long getInput2()
   {
	   return input.nextLong();
   } //end method getInput2
   
   public String getInput3()
   {
	   return input.next();
   }
   
   public double getInput4()
   {
	   return input.nextDouble();
   }
} // end class Keypad  
